package cn.img;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;

public class Nio1 {
    public static void main(String[] args) {
        try {
            //Files.copy(Path.of("qr.png"),Path.of("qr2222.png"));
            //Files.copy(Path.of("c:/t1"),Path.of("c:/tt1/"));

            Files.move(Path.of("qr.png"),Path.of("myqr.png"));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
